# coding=utf-8
from framework.base_page import BasePage

class EportsCtmPage(BasePage):
    btn_add_customer = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[1]/button"
    btn_reset = ""
    btn_search = ""
    input_search_name = ""
    input_search_email = ""
    input_search_tel = ""
    btn_edit_1 = ""
    btn_delete_1 = ""

    def type_search_name(self, text):
        self.type(self.input_search_name, text)

    def type_search_email(self, text):
        self.type(self.input_search_email, text)

    def type_search_tel(self, text):
        self.type(self.input_search_tel, text)

    def click_addcustomer(self):
        self.click(self.btn_add_customer)
        self.sleep(2)

    def click_reset(self):
        self.click(self.btn_reset)
        self.sleep(2)

    def click_search(self):
        self.click(self.btn_search)
        self.sleep(2)

    def click_edit1(self):
        self.click(self.btn_edit_1)
        self.sleep(2)

    def click_delete1(self):
        self.click(self.btn_delete_1)
        self.sleep(2)
